﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" 
    Inherits="ModelViewPage<DoctorDetailDto> " %>    
<%@ Import Namespace="MvcContrib.UI.Grid" %>
<%@ Import Namespace="Revis.VClinicNet.Util.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Dane lekarza</h2>
        
    <fieldset class="form">

        <h3>Dane osobowe</h3>

        <div>
            <%=this.Literal(d=>d.Doctor.FirstName).Label("Imię:") %>
        </div>

        <div>
            <%=this.Literal(d=>d.Doctor.Surname).Label("Nazwisko:") %>
        </div>        
        <h3>Godziny pracy:</h3>
        <div>            
            <%=Html.Grid(Model.WorkingTimes).Columns(column=>{
                  column.For(w => w.Day.ToPLString())
                      .Named("Dzień")
                      .Attributes(@class=>"center");
                  column.For(w => w.BeginInfo)
                      .Named("Początek zmiany")
                      .Attributes(@class => "center");
                  column.For(w => w.EndInfo)
                      .Named("Koniec zmiany")
                      .Attributes(@class => "center");
                  column.For(w => Html.ActionLink("Edytuj", "Edit", "WorkTime", new { id = w.Id }, null))
                      .Named("Edytuj")
                      .Attributes(@class => "center")
                      .DoNotEncode();
                }) %>
        </div>

    </fieldset>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
